package com.d0330;

public class TestNewInstance {
    public static void main(String[] args) {
        Class clazz = Account.class;

        Account account = null;
        try {
            account = (Account) clazz.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        System.out.println(account);
    }
}
